
public class Pento {
    
    // Describes piece 1 (the "I" pentomino) in its horizontal orientation.
     //first position is the pentoName, the next ten positions represent the pento, the last two are the turning point.
public static int[][] allPentos= {
{ 1, 0,0, 0,1, 0,2, 0,3, 0,4, 0,2}, 
{ 2, 0,1, 1,0, 1,1 ,1,2, 2,1, 1,1}, 
{ 3, 0,1, 0,2, 1,1, 2,0, 2,1, 1,1}, 
{ 3, 0,0, 0,1, 1,1, 2,1, 2,2, 1,1},
{ 4, 0,0, 1,0, 2,0, 2,1, 2,2, 1,1},
{ 5, 0,0, 0,1, 0,2, 1,1, 2,1, 1,1},
{ 6, 0,0, 1,0, 1,1, 2,1, 2,2, 1,1},
{ 7, 0,0, 0,1, 0,2, 1,0, 1,2, 1,1},
{ 8, 0,0, 1,0, 1,1, 1,2, 1,3, 1,1},
{ 8, 0,0, 0,1, 0,2, 0,3, 1,0, 0,1},
{ 9, 0,1, 0,2, 1,-1, 1,0, 1,1, 1,1},
{ 9, 0,0, 0,1, 1,1, 1,2, 1,3, 1,1},
{ 10, 0,2, 1,0, 1,1, 1,2, 1,3, 1,2},
{ 10, 0,1, 1,0, 1,1, 1,2, 1,3, 1,1},
{ 11, 0,1, 0,2, 1,0, 1,1, 2,1, 1,2},
 { 11, 0,0, 0,1, 1,1, 1,2, 2,1, 1,1},
 { 12, 0,0, 0,1, 0,2, 1,0, 1,1, 1,0},
 { 12, 0,0, 0,1, 0,2, 1,1, 1,2, 1,1},
};

    








    
public static int[] getPento()            //creates a random pento
{
    //int [] randomTemp=allPentos[0];
    int [] randomTemp=allPentos[(int)(Math.random()*17)];
    int[] random=new int[13];
    System.arraycopy(randomTemp, 0, random, 0, 13);
    
    return random;
    
}



}

